/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-2-20
 * 
**/
package com.julewa.db;


public class Entity<KEY>{
	
	public static final String SCOPE = "prototype";
	
	protected KEY ID = null;
	
	public @DB.KEY(min=0) KEY getID(){
		return ID;
	};
	
	//@SuppressWarnings("unchecked")
	public void setID(KEY id){
		this.ID = id;
		/*
		if(this._ID_ == null){
			if(id == null)return;
			this._ID_ = (KEY)ConvertUtils.convert(id,
					SystemContext.getEntityKeyType(this.getClass()));
		}else if(id == null){
			this._ID_ = null;
		}
		*/
	};
	
}
